<!--The content below is only a placeholder and can be replaced.-->
<div style="text-align:center">
  <label>学号:</label>
<input type="text"  [(ngModel)]="studentvo.xh"  />

<label>姓名:</label>
<input type="text" [(ngModel)]="studentvo.xm" />

<label>身份证号:</label>
<input type="text"  [(ngModel)]="studentvo.sfzh" />

<button (click)="add()">保存</button>
</div>
<div style="text-align:center">
<p>{{student.stunum}}</p>
<p>{{student.name}}</p>
<p>{{student.sex}}</p>
<p>{{student.birthday  | date:"yyyy-MM-dd"}}</p>
<P>{{student.nativeplace}}</P>
</div>
<div style="text-align:center ">
  <table border="2">
  <tr>
  <th>主键</th>
  <td>学号</td>
  <td>姓名</td>
  <td>性别</td>
  <td>出生日期</td>
  <td>籍贯</td>
  <td>操作</td>
  </tr>
  <tr *ngFor="let s of sl" >
      <td>{{s.studentid}}</td>
      <td>{{s.stunum}}</td>
      <td>{{s.name}}</td>
      <td>{{s.sex}}</td>
      <td>{{s.birthday | date:"yyyy-MM-dd"}}</td>
      <td>{{s.nativeplace}}</td>
      <td>
  <button (click)="getToUpdateStudent(s.studentid)">修改</button>
  <button (click)="delteStudent(s.studentid)" >删除</button>
  </td>
  </tr>
  </table>
  </div>
  
  
